<?php

namespace App\Http\Requests;


class DictDataRequest extends BaseRequest
{
    public function rules()
    {
        return [
            'dict_label' => 'required',
            'dict_value' => 'required',
            'dict_type' => 'required',
            'status' => 'required'
        ];
    }

    public function messages()
    {
        return [
            'dict_label.required' => '数据标签必须填写',
            'dict_value.required' => '数据键值必须填写',
            'dict_type.required' => '字典类型必须填写',
            'status.required' => '请选择状态',
        ];
    }
}
